import { defineConfig } from "vite";
import react from "@vitejs/plugin-react";
import path from "path";
// https://vitejs.dev/config/
export default defineConfig({
  plugins: [react()],
  resolve: {
    alias: {
      // 为 src 目录设置别名
      "@": path.resolve(__dirname, "./src"),
      // 为 src/components 目录设置别名
      "@components": path.resolve(__dirname, "./src/components"),
      // 其他的别名...
    },
  },
});
